.create-team-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #6B73FF 0%, #D8DDFF 50%, #FFFFFF 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 顶部导航 */
.header {
  padding: 15px 20px;
  background: transparent;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-icon {
  font-size: 24px;
  font-weight: bold;
}

/* 主要内容区域 */
.main-content {
  padding: 0 20px 40px;
}

/* 页面标题 */
.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin: 0 0 25px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tab切换 */
.tab-container {
  display: flex;
  background: white;
  border-radius: 31px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  border-radius: 21px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #6B73FF;
  color: white;
  transform: scale(1.02);
}

/* 队伍类型选择 */
.team-type-section {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.select-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: row;
}

.team-type-select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #E1E5E9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.team-type-select:focus {
  border-color: #6B73FF;
}

.recommend-btn {
  padding: 12px 24px;
  background: #1DC171;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.recommend-btn:hover:not(:disabled) {
  background: #17A85A;
  transform: translateY(-1px);
}

.recommend-btn:disabled {
  background: #CCC;
  cursor: not-allowed;
  transform: none;
}

/* 搜索功能 */
.search-section {
  margin-bottom: 20px;
}

/* 提示样式 */
.college-tip,
.search-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 100%);
  border: 1px solid #B3D9FF;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 15px;
  animation: slideDown 0.3s ease-out;
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-content {
  flex: 1;
}

.tip-text {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.5;
  margin: 0;
}

/* 滑入动画 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-container {
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #E1E5E9;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #6B73FF;
}

.search-input:disabled {
  background: #f8f9fa;
  color: #999;
  cursor: not-allowed;
}

.search-btn {
  padding: 12px 16px;
  background: #6B73FF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover:not(:disabled) {
  background: #5A63E6;
}

.search-btn:disabled {
  background: #CCC;
  cursor: not-allowed;
}

/* 已选信息 */
.selected-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
}

.selected-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.clear-btn {
  padding: 6px 12px;
  background: #FF6B6B;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.clear-btn:hover {
  background: #FF5252;
}

/* 学生列表 */
.student-list {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.list-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px;
  gap: 15px;
  padding: 15px 20px;
  background: #F8F9FA;
  border-bottom: 1px solid #E1E5E9;
}

.header-item {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}


.student-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #F0F0F0;
  transition: all 0.3s ease;
  align-items: center;
}

.student-item:hover {
  background: #F8F9FA;
}

.student-item.selected {
  background: #EEEEFF;
  border-left: 4px solid #6B73FF;
}

.student-info {
  font-size: 16px;
  color: #333;
  text-align: center;
}

.student-name {
  font-weight: 500;
}

.student-action {
  display: flex;
  justify-content: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #6B73FF;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn:disabled {
  background: #CCC;
  cursor: not-allowed;
  transform: none;
}

.action-btn.remove-btn {
  background: #FF6B6B;
}

.action-btn.remove-btn:hover {
  background: #FF5252;
}

/* 加载状态 */
.loading-container {
  padding: 40px 20px;
  text-align: center;
}

.loading-text {
  font-size: 16px;
  color: #666;
  font-style: italic;
}

/* 空状态 */
.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 14px;
  color: #666;
}

/* 底部操作 */
.bottom-actions {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.next-btn {
  padding: 15px 30px;
  background: #6B73FF;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 115, 255, 0.3);
}

.next-btn:hover:not(:disabled) {
  background: #5A63E6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 115, 255, 0.4);
}

.next-btn:disabled {
  background: #CCC;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .main-content {
    padding: 0 15px 30px;
  }

  .list-header,
  .student-item {
    grid-template-columns: 1fr 1fr 1fr 60px;
    gap: 10px;
    padding: 12px 15px;
  }

  .header-item,
  .student-info {
    font-size: 14px;
  }

  .action-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .team-type-section,
  .search-container {
    padding: 15px;
  }
  
  .college-tip,
  .search-tip {
    padding: 12px 15px;
    margin-top: 12px;
  }
  
  .tip-text {
    font-size: 13px;
  }

  .page-title {
    font-size: 24px;
    margin: 0 0 20px 0;
  }
}

@media (max-width: 480px) {

  .list-header,
  .student-item {
    grid-template-columns: 1fr 1fr 1fr 50px;
    gap: 8px;
    padding: 10px 12px;
  }

  .header-item,
  .student-info {
    font-size: 13px;
  }

  .action-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .next-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .page-title {
    font-size: 20px;
    margin: 0 0 15px 0;
  }
}

/* 候选人弹窗样式 */
.candidates-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.candidates-popup {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-header {
  background: linear-gradient(135deg, #6B73FF 0%, #9B59B6 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.popup-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.popup-body {
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.candidates-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
}

.candidate-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #F0F0F0;
  position: relative;
  transition: background-color 0.3s ease;
}

.candidate-item:hover {
  background: #F8F9FA;
}

.candidate-item:last-child {
  border-bottom: none;
}

.candidate-remove-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 20px;
  height: 20px;
  border: none;
  background: #FF6B6B;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.candidate-remove-btn:hover {
  background: #FF5252;
  transform: scale(1.1);
}

.student-avatar {
  margin-right: 15px;
  flex-shrink: 0;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B73FF 0%, #9B59B6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(107, 115, 255, 0.3);
}

.student-details {
  flex: 1;
  margin-right: 15px;
}

.student-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.student-id {
  font-size: 14px;
  color: #666;
  margin-bottom: 2px;
}

.student-college {
  font-size: 13px;
  color: #999;
}

.role-selector {
  flex-shrink: 0;
}

.role-dropdown {
  padding: 8px 12px;
  border: 2px solid #E1E5E9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
  min-width: 100px;
}

.role-dropdown:focus {
  border-color: #6B73FF;
}

.popup-footer {
  padding: 20px;
  border-top: 1px solid #F0F0F0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #FAFAFA;
}

.btn-secondary {
  padding: 10px 20px;
  background: #F8F9FA;
  color: #666;
  border: 1px solid #E1E5E9;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #E9ECEF;
  border-color: #CED4DA;
}

.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6B73FF 0%, #9B59B6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 115, 255, 0.4);
}

.btn-primary:disabled {
  background: #CCC;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 角色加载状态 */
.roles-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-icon {
  font-size: 32px;
  margin-bottom: 12px;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

  .roles-loading .loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
  }

  /* 成功提示弹窗样式 */
  .success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
  }

  .success-popup {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successSlideIn 0.4s ease-out;
    overflow: hidden;
  }

  .success-header {
    background: linear-gradient(135deg, #1DC171 0%, #17A85A 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
  }

  .success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 0.6s ease-out;
  }

  .success-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
  }

  .success-body {
    padding: 30px 25px;
  }

  .team-success-info {
    margin-bottom: 25px;
  }

  .success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
  }

  .success-item:last-child {
    border-bottom: none;
  }

  .success-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
  }

  .success-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
  }

  .success-message {
    text-align: center;
    line-height: 1.6;
  }

  .success-message p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
  }

  .success-footer {
    padding: 0 25px 25px;
    text-align: center;
  }

  .success-btn {
    background: linear-gradient(135deg, #1DC171 0%, #17A85A 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 193, 113, 0.3);
    width: 100%;
  }

  .success-btn:hover {
    background: linear-gradient(135deg, #17A85A 0%, #149A51 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 193, 113, 0.4);
  }

  /* 成功弹窗动画 */
  @keyframes successSlideIn {
    from {
      opacity: 0;
      transform: scale(0.7) translateY(-50px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }

  /* 移动端适配 */
@media (max-width: 768px) {
  .candidates-popup {
    width: 95%;
    max-height: 85vh;
  }
  
  .popup-header {
    padding: 15px;
  }
  
  .popup-title {
    font-size: 18px;
  }
  
  .candidate-item {
    padding: 15px;
  }
  
  .avatar-circle {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .student-name {
    font-size: 16px;
  }
  
  .student-id,
  .student-college {
    font-size: 13px;
  }
  
  .role-dropdown {
    min-width: 80px;
    font-size: 13px;
  }
}

  @media (max-width: 480px) {
    .candidates-popup {
      width: 98%;
      max-height: 90vh;
    }
    
    .popup-footer {
      padding: 15px;
      flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
      width: 100%;
      justify-content: center;
    }
    
    .candidate-item {
      flex-direction: column;
      text-align: center;
      padding: 20px 15px;
    }
    
    .student-avatar {
      margin-right: 0;
      margin-bottom: 10px;
    }
    
    .student-details {
      margin-right: 0;
      margin-bottom: 15px;
    }

    /* 成功弹窗移动端适配 */
    .success-popup {
      width: 95%;
      margin: 20px;
    }
    
    .success-header {
      padding: 25px 15px;
    }
    
    .success-icon {
      font-size: 40px;
      margin-bottom: 12px;
    }
    
    .success-title {
      font-size: 20px;
    }
    
    .success-body {
      padding: 25px 20px;
    }
    
    .success-item {
      padding: 10px 0;
    }
    
    .success-label,
    .success-value {
      font-size: 14px;
    }
    
    .success-message p {
      font-size: 13px;
    }
    
    .success-footer {
      padding: 0 20px 20px;
    }
    
    .success-btn {
      padding: 12px 30px;
      font-size: 15px;
    }
  }
